<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core">

<table width="100%" class='schedule-table'>
	<thead style="">
		<tr>
			<th class='schedule-table'></th>
			<th class='schedule-table'>Понедельник</th>
			<th class='schedule-table'>Вторник</th>
			<th class='schedule-table'>Среда</th>
			<th class='schedule-table'>Четверг</th>
			<th class='schedule-table'>Пятница</th>
			<th class='schedule-table'>Суббота</th>
		</tr>
	</thead>
	<tbody>
		<ui:repeat value="#{week}" var="row">
			<tr>
				<td width='3%' class='schedule-table'>
					<b>#{row.lessonNum + 1}</b>
				</td>
				<ui:repeat value="#{row.items}" var="i">
					<td width='16%' class='schedule-table'>
						<h:outputText value="#{i.subjectTitle}" rendered="#{!scheduleBean.editMode}" />
						<h:selectOneMenu value="#{i.choosedSubject}"
							title="select any one in this menu" style="font-size: 10px;"
							converter="#{i.subjectConverter}"
							rendered='#{scheduleBean.editMode}'>
							<f:selectItems value="#{i.subjects}" />
						</h:selectOneMenu>
					</td>
				</ui:repeat>
			</tr>
		</ui:repeat>
	</tbody>
</table>
</html>